import Layout from '@/layout'

// 员工管理
export default {
  path: '/employees',
  component: Layout,
  children: [
    // 默认首页
    {
      path: '',
      name: 'employees', // 后续权限会根据name过滤
      component: () => import('@/views/employees'), // 懒加载
      meta: { title: '员工管理', icon: 'people' }
    },
    // 员工详情路由配置
    {
      path: '/employees/detail/:id',
      hidden: true, // 不在菜单显示
      component: () => import('@/views/employees/detail'), // 懒加载
      meta: { title: '员工详情' }
    }
  ]
}
